package com.orcl.ds2.controller;

import com.orcl.ds2.service.TwoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test2")
@Api("测试")
public class TwoController {
    @Autowired
    private TwoService twoService;

    @GetMapping("/getXhbzcx")
    @ApiOperation("查询预警内容")
    public Object getXhbzcx(){
        return twoService.getXhbzcx();
    }
}
